﻿<%@ Page Language="C#" AutoEventWireup="true" CodeFile="ManageMenu.aspx.cs" Inherits="Admin_ManageMenu" %>

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">

<html xmlns="http://www.w3.org/1999/xhtml" >
<head id="Head1" runat="server">
    <title>菜单管理</title>
    <style type ="text/css" >
        #scrollDiv
        {
           position:fixed;
           left:320px;
           top:60px;
           border:black 0px solid;
           background-color:inherit;
           width: 450px;
           height: 250px;
           _position:absolute;
           _top:expression(offsetParent.scrollTop+60);
            
           overflow:hidden;

        }
        .style3
        {
            font-size:14px;
            width:296px;
        }

        .style4
        {
            font-size:14px;
            width:125px;
        }
        .style5
        {
            font-size:13px;
        }
        
        .button
        {
        width:56px;  /*图片宽带*/
        background:url(../img/button.jpg) no-repeat left top;  /*图片路径*/
        border:none;  /*去掉边框*/
        height:24px; /*图片高度*/
        color:White;
        vertical-align: middle;
        text-align:center
        }

        .button2
        {
        width:70px;  /*图片宽带*/
        background:url(../img/button2.jpg) no-repeat left top;  /*图片路径*/
        border:none;  /*去掉边框*/
        height:24px; /*图片高度*/
        color:White;
        vertical-align: middle;
        text-align:center
        }

    </style>
</head>
<body>
    <iframe  id="focus"  name="tag" style="display: none"></iframe>
    <form id="form1" runat="server" >
        <div id="Div2">
            <img id="imgTop" height="38px;" src="../img/ManageMenu.jpg" width="100%" alt="菜单管理" />
        </div>
    <div>
    <table id="__01" width="259" height="167" border="0" cellpadding="0" cellspacing="0">
	<tr>
		<td><img src="../img/ManageMenu_01.jpg" width="28" height="58" alt=""/></td>
		<td style=" background:url(../img/ManageMenu_02.jpg)"><img src="../img/ManageMenu_02.jpg" width="202" height="58" alt=""/></td>
		<td><img src="../img/ManageMenu_03.jpg" width="29" height="58" alt=""/></td>
	</tr>
	<tr>
		<td style=" background:url(../img/ManageMenu_04.jpg)"><img src="../img/ManageMenu_04.jpg" width="28" height="80" alt=""/></td>
		<td style="background-color:White">
			<asp:TreeView ID="TreeView1"  runat="server"  
            onselectednodechanged="TreeView1_SelectedNodeChanged1" Font-Bold="False" ForeColor="Black" Font-Size="11pt">
            <SelectedNodeStyle Font-Underline="True" HorizontalPadding="0px" VerticalPadding="0px" ForeColor="#000000" />
            <DataBindings>
                <asp:TreeNodeBinding DataMember="ROOT" />
                <asp:TreeNodeBinding DataMember="node" />
            </DataBindings>
            </asp:TreeView>
            
		</td>
		<td style=" background:url(../img/ManageMenu_06.jpg)"><img src="../img/ManageMenu_06.jpg" width="29" height="80" alt=""/></td>
	</tr>
	<tr>
		<td><img src="../img/ManageMenu_07.jpg" width="28" height="29" alt=""/></td>
		<td style=" background:url(../img/ManageMenu_08.jpg)"><img src="../img/ManageMenu_08.jpg" width="202" height="29" alt=""/></td>
		<td><img src="../img/ManageMenu_09.jpg" width="29" height="29" alt=""/></td>
	</tr>
    </table>
        
    <div id="scrollDiv">
	<table id="Table1" width="450" height="250" border="0" cellpadding="0" cellspacing="0">
	<tr>
		<td><img src="../img/ManageMenuW_01.jpg" width="14" height="47" alt=""/></td>
		<td colspan="2"><img src="../img/ManageMenuW_02.jpg" width="421" height="47" alt=""/></td>
		<td><img src="../img/ManageMenuW_03.jpg" width="15" height="47" alt=""/></td>
	</tr>
	<tr>
		<td rowspan="6"><img src="../img/ManageMenuW_04.jpg" width="14" height="169" alt=""/></td>
		<td style="background-color:#edf5f8" align="right" class="style4">
		选择文件：
		</td>
		<td  style="background-color:#edf5f8" align="left" class="style3">
			<asp:FileUpload ID="FileUpload1" runat="server"/>
		    <asp:TextBox ID="TextBox1" runat="server" Visible="false" Width="10px"></asp:TextBox>
		</td>
		<td rowspan="6"><img src="../img/ManageMenuW_07.jpg" width="15" height="169" alt=""/></td>
	</tr>
	<tr>
		<td style="background-color:#edf5f8" align="right" class="style4">
		所选菜单序号：
		</td>
		<td  style="background-color:#edf5f8" align="left" class="style3">
			<input id="selectedvalue" type="text" runat="server" size="35"/>
		</td>
	</tr>
	<tr>
		<td style="background-color:#edf5f8" align="right" class="style4">
		所选菜单名称：
		</td>
		<td style="background-color:#edf5f8" align="left" class="style3">
		    <input id="nName" type="text" runat="server" size="35"/>
		</td>
	</tr>
	<tr>
		<td style="background-color:#edf5f8" align="right" class="style4">
		菜单链接：
		</td>
		<td style="background-color:#edf5f8" align="left" class="style3">
		    <input id="selecteUrl" type="text" runat="server" size="35"/>
		</td>
	</tr>
	<tr>
		<td style="background-color:#edf5f8" align="right" class="style4">
		显示菜单：
		</td>
		<td style="background-color:#edf5f8" align="left" class="style3">
		    <asp:CheckBox ID="nVis" runat="server" />
		</td>
	</tr>
	<tr>
		<td colspan="2" style="background-color:#edf5f8" align="center">
			<asp:Label  CssClass="style5" ID="Lab1" align="center" valign="bottom" runat="server" ForeColor="Red" Width="340px" Height="26px"></asp:Label>
		</td>
	</tr>
	<tr>
		<td>
			<img src="../img/ManageMenuW_15.jpg" width="14" height="34" alt=""></td>
		<td colspan="2" style=" background:url(../img/ManageMenuW_16.jpg)" align="center">
            <asp:Button ID="BtnLoad" runat="server" Text="加载" OnClick="BtnLoad_Click" CssClass="button"/>&nbsp;
            <asp:Button ID="BtnAdd" runat="server" Text="添加菜单" OnClick="BtnAdd_Click" CssClass="button2"/>&nbsp;
            <asp:Button ID="BtnUpd" runat="server" Text="修改菜单" OnClick="BtnUpd_Click" CssClass="button2"/>&nbsp;
	        <asp:Button ID="BtnDel" runat="server" Text="删除菜单" OnClick="BtnDel_Click" CssClass="button2"/>&nbsp;
	        <asp:Button ID="BtnSort" runat="server" Text="排序" OnClick="BtnSort_Click" CssClass="button"/>&nbsp;
	        <asp:Button ID="BtnUp" runat="server" Text="上传" OnClick="BtnUp_Click" CssClass="button"/>
        </td>
		<td><img src="../img/ManageMenuW_17.jpg" width="15" height="34" alt=""/></td>
	</tr>
</table>
</div>
</div>
</form>
</body>
</html>
<script type="text/jscript">
    function TreeViewCheckBox_Click(e) 
    {   
         if (window.event == null)   
             o = e.target;   
         else  
             o = window.event.srcElement;   
         if (o.tagName == "INPUT" && o.type == "checkbox") 
         {   
             __doPostBack("", "");   
         }   
     }   
</script>

